package com.wangp.demo.entity;

import com.wangp.demo.anno.ValueChangeTrace;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author <a href="mailto:wangpeng@i-baby.com" rel="nofollow">wp☠😘✨</a>
 * @version 0.0.1
 * @since 2025/8/14 22:35
 */
@Getter
@Setter
@Slf4j
@ValueChangeTrace
public class DemoDO extends BaseDo {

    private String name;
    private Integer age;

    @Override
    public void setCreateTime(LocalDateTime createTime) {
        System.out.println("123123123213");
        System.out.println("DemoDO.setCreateTime");
        super.setCreateTime(createTime);
        super.setUpdateTime(LocalDateTime.now());
        System.out.println("DemoDO.setCreateTime123123123");
    }
}
